package com.cheng.admin.model;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 单位价格
 * </p>
 *
 * @author 起凡
 * @since 2022-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pl_unit_price")
public class UnitPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 描述
     */
    private String description;

    /**
     * 首件
     */
    @NotNull(message = "起步数不能为空")
    private BigDecimal first;

    /**
     * 首件运费
     */
    @NotNull(message = "起步价格不能为空")
    private BigDecimal firstPrice;

    /**
     * 续件
     */
    private BigDecimal renewal;

    /**
     * 续件运费
     */
    private BigDecimal renewalPrice;

    private BigDecimal end;
    /**
     * 0照片 1字数 2手写
     */
    @NotBlank(message = "单价类型不能为空")
    private String type;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 删除标志 true/false 删除/未删除
     */
    @TableLogic
    private Boolean deleted;


}
